home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / PROGRAM / DMAKE38A.ARJ / APPLE.MAC < prev    next >
Text File  |  1991-09-12  |  2KB  |  43 lines

  1. Notes on the Macintosh implementation of dmake:
  2.  
  3. This port for the Macintosh is specifically designed to be run
  4. under MPW.
  5.  
  6. I had to make a couple of changes to dmake in order to get it to work
  7. on the Mac.  First, MPW provides no documented way to run a
  8. subprocess, so when you use dmake, you MUST use the -n option and
  9. execute the output.  Typically, you will probably want to write a
  10. simple script file to do these operations for you.
  11.  
  12. I added some code so that the Macintosh version of dmake can
  13. use UNIX-style directories to specify include paths and target
  14. and dependency file names.  I.e., if you specify a file "/dir/file",
  15. dmake will look at the file "dir:file".  However, Mac dmake does not
  16. do any translation from files specified by UNIX-style directories
  17. in the recipe line that gets executed.  If you need to translate,
  18. you can use substitution commands.  (For example,
  19. ":$(RELATIVEUNIXFILE:s,/,:,)".)  This code was added so one could
  20. execute dmake's makefile, and also so one would have an easier time
  21. porting other UNIX makefiles.  I would suggest you stick with
  22. Macintosh-style directories for all other makefiles.
  23.  
  24. I was getting memory trashing errors when I was reading in
  25. environmental variables >4K with the -e option.  I had trouble
  26. tracking down exactly what was causing the problem, so decided it
  27. was easier to just clip the length before sending it to the dmake
  28. parser.  I arbitrarily picked 1K as the maximum length, figuring
  29. it was highly unlikely anyone really needed a variable longer than
  30. that from within a makefile.  (This error may be related to the
  31. value you set for MAXLINELENGTH, so to be safe, you should keep
  32. it >1K.)
  33.  
  34. In order to run dmake, you must set (and export) the environmental
  35. variable "OS" to "mac".
  36.  
  37. Finally, dmake looks for the file startup.mk in
  38. "{MPW}tools:{DMSTARTUPDIR}".  "DMSTARTUPDIR" can be defined if you
  39. want to override the default tools directory location.
  40.  
  41. Micah Doyle
  42. micah@leland.Stanford.EDU
  43.